package com.thx.app.remote.impl;

import mixedserver.protocol.RPCException;

import org.springframework.beans.BeanUtils;

import com.thx.app.remote.SplashNetImgInter;
import com.thx.app.remote.model.SplashNetImg_;
import com.thx.appserver.model.CappSplashImg;
import com.thx.appserver.service.CappSplashImgManager;
import com.thx.common.spring.BeanFactory;

public class SplashNetImgImpl implements SplashNetImgInter{

	/**
	 * 获取最新 网络广告 信息
	 */
	public SplashNetImg_ getNetImage() throws RPCException {
		CappSplashImgManager manager = (CappSplashImgManager) BeanFactory.getBean(CappSplashImgManager.class);
		CappSplashImg obj = manager.getNewSplashImg();
		SplashNetImg_ cos = new SplashNetImg_();
		if(obj != null){
			BeanUtils.copyProperties(obj, cos);
			return cos;
		}
		return null;
	}

}
